package com.yuliang.day2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class User {

    @Autowired
    private Book book;


    public void read(){
        System.out.println("小米在看"+book.name);
        book.save();
    }
}
